#include "Sa2dDom.h"

singularity::singularity(){
	myangle = new angle();
}

position *singularity::getPosition()
   {
       return myposition;
   }

   string singularity::getName()
   {
       return name;
   }

   string singularity::getType()
   {
       return type;
   }

   double singularity::getValue()
   {
       return value;
   }

   angle* singularity::getAngle(){
	   return myangle;
   }

   void singularity::setPosition(position *myposition)
   {
       this->myposition = myposition;
   }

   void singularity::setName(string name)
   {
       this->name = name;
   }

   void singularity::setType(string type)
   {
       this->type = type;
   }

   void singularity::setValue(double value)
   {
       this->value = value;
   }

   void singularity::setAngle(angle* anangle){
	   this->myangle = anangle;
   }

   string singularity::toString(int indent){
	   stringstream returnString;
	   string tabs = this->getIndent(indent);

	   returnString << tabs << "Singularity:"<< "\n";
	   returnString << tabs << "name: " << name << "\n";
	   returnString << tabs << "type: " << type << "\n";
	   returnString << myposition->toString(indent+1);

	   return returnString.str();
   }
